<?php
$server="localhost";
$name="root";
$pwd="123456";
$db="dawut";

$con=mysqli_connect($server,$name,$pwd,$db);

$name=$_POST['name'];
$daris=$_POST['daris'];
$natija=$_POST['natija'];

if ($con){
    $sql="insert into kuyax(name,daris,natija) values('$name','$daris','$natija')";
    $run=mysqli_query($con,$sql);
    if($run){
        echo "数据表添加成功";
    }else{
        echo "已连接成功，但未能添加数据";
    }
    }else{
    echo "未连接数据库，错误内容：" .mysqli_connect_error();
}